Skip to content

Conversation

@tusharshah21
Copy link
Collaborator

Add plus button to badges for quick attestation

Closes #52

Summary

Adds a plus button next to each badge on profile pages that opens the attestation dialog with that badge preselected.

Changes

  • Added preselectedBadge prop to AddAttestationDialog component
  • Added plus button next to badges in Attestations and Issued Attestations sections
  • Button only visible to authenticated users viewing other profiles
  • Click opens dialog with badge preselected

Testing

  • Plus button appears on other users' profiles when logged in
  • Opens attestation dialog with correct badge selected
  • Hidden on own profile and when not authenticated
  • No TypeScript errors

Copy link
Contributor

@joelamouche joelamouche left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Perfect 🎯

@joelamouche joelamouche merged commit ebc07c0 into main Jan 23, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

On the profile, add a badge by clicking on a plus button next to a skill

3 participants